<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix = "c" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix = "fmt" %>
<%@page isELIgnored="false"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<h1>正在修改ID为${customer.id}的用户的数据</h1>
	<h4>原数据：
	<table>
	<tr>
	 		
	 		<td>ID：${customer.id }</td>
	 	    <td>姓名：${customer.cname }</td>
	 		<td>
	 		性别：
	 		<c:if test="${customer.sex }">男</c:if>
	 		<c:if test="${!customer.sex }">女</c:if>
	 		</td>
	 		<td>工资：${customer.sal }元</td>
	 		<td>生日：<fmt:formatDate pattern="yyyy年MM月dd日" value="${customer.birth }"></fmt:formatDate></td>
	 		<td>兴趣：<c:forEach items="${customer.favs }" var="ff">${ff }&nbsp;</c:forEach></td>
	 	</tr>
	</table>
	</h4>
	<form action="update" method="post">
		<input type = "hidden" name = "id" value = "${customer.id}"/><br/>
		cname:<input type = "text" name = "cname" /><br/>
		sal:<input type = "number" name = "sal" /><br/>
		birth:<input type = "date" name = "birth"/><br/>
		sex:<input type = "radio" name = "sex" value="true" checked="checked"/>男
		<input type = "radio" name = "sex" value="false" checked="checked"/>女<br/>
		favs:<input type = "checkbox" name="favs" value = "basketball">篮球
		<input type = "checkbox" name="favs" value = "swim">游泳
		<input type = "checkbox" name="favs" value = "football">足球<br/>
		<input type = submit value = "提交" name = "submit"><br/>
	</form>
</body>
</html>